package cn.tedu.huntingmall.mapper;

import cn.tedu.huntingmall.pojo.dto.shoppingcart.ShoppingCartAddNewDTO;
import cn.tedu.huntingmall.pojo.entity.shoppingcart.ShoppingCart;
import cn.tedu.huntingmall.pojo.vo.shoppingcart.ShoppingCartStandardVO;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface ShoppingCartMapper {

    int insert(ShoppingCart shoppingCart);

    int deleteById(Long id);

    int updatecountById(@Param("commodityId") Long commodityId, @Param("count") Integer count);

    ShoppingCartStandardVO selectById(Long id);

    List<ShoppingCartStandardVO> selectByUsername(String username);

}
